package com.dengyuanke.observerpattern.pullmodel;



/**
 * 客户端
 */
public class Client {

    public static void main(String[] args) {

        Subject subject=new ConcreteSubject();

        Observer concreteObserver=new ConcreteObserver();
        //注册
        subject.attach(concreteObserver);

        Observer oneOberver=new OneObserver();
        subject.attach(oneOberver);

        Observer twoOberver=new TwoObserver();
        subject.attach(twoOberver);

        subject.notifyobserver();

    }
}
